<?php
$this->pageTitle=Yii::app()->name . ' - Reset Password';
$this->breadcrumbs=array(
    'Reset Password',
);
?>
<div id="primaryContent">
    <div class="primaryBox">
        <h1>Reset Password</h1>
        <div class="form wide">

        <?php $form=$this->beginWidget('CActiveForm', array(
	        'id'=>'user-form',
            'enableAjaxValidation'=>false,
            'enableClientValidation'=>true,
            'clientOptions'=>array(
                'validateOnSubmit'=>true,
                ),
        )); ?>
            <?php $this->widget('MessageBox'); ?>
            
            <div class="row">
                <?php echo CHtml::label('Email', ''); ?>
                <?php echo $model->email; ?>
            </div>

	        <div class="row">
		        <?php echo CHtml::label('Username', ''); ?>
		        <?php echo $model->username; ?>
	        </div>

            <div class="row">
                <?php echo $form->labelEx($model,'password'); ?>
                <?php echo $form->passwordField($model,'password',array('size'=>60,'maxlength'=>64)); ?>
                <?php echo $form->error($model,'password'); ?>
            </div>

	        <div class="row">
		        <?php echo $form->labelEx($model,'confirmPassword'); ?>
		        <?php echo $form->passwordField($model,'confirmPassword',array('size'=>60,'maxlength'=>64)); ?>
		        <?php echo $form->error($model,'confirmPassword'); ?>
	        </div>
           <div class="row buttons">
                    <div class="button left-fragment">
                        <div class="right-fragment">
                        <?php //echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?>
                        <?php echo CHtml::submitButton('Submit'); ?>
                        </div>
                    </div> 
            </div>
	        
        <?php $this->endWidget(); ?>

        </div><!-- form -->
    </div>
</div>                    
<?php 
cs()->registerMetaTag(Settings::DEFAULT_META_DESCRIPTION,'description');
cs()->registerMetaTag(Settings::DEFAULT_META_KEYWORDS,'keywords');
?>